//
//  GifModel.m
//  GIFShow
//
//  Created by lanou11air029 on 15/3/27.
//  Copyright (c) 2015年 CK. All rights reserved.
//

#import "GifModel.h"
#import "MYImageModel.h"
@implementation GifModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
//    NSLog(@"undefine 的 key:%@",key);
}
-(void)setValue:(id)value forKey:(NSString *)key{
        [super setValue:value forKey:key];
    if ([key isEqualToString:@"imagelist"]) {
        MYImageModel * imageModel = [[MYImageModel alloc]init];
        NSDictionary * imageDic = [value firstObject];
        [imageModel setValuesForKeysWithDictionary:imageDic];
        _imagelist = [[NSMutableArray alloc]initWithObjects:imageModel, nil];
    
    }
}
@end
